package com.woniuxy.microsysserver.service.impl;
import com.woniuxy.microsysserver.dao.LoginDao;
import com.woniuxy.microsysserver.entity.acl.User;
import com.woniuxy.microsysserver.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Auther: wuson  <br/>
 * Date: 2021/3/11:19:51  <br/>
 * Description:
 */
@Service
public class LoginServiceImpl implements LoginService {
    @Autowired(required = false)
    private LoginDao loginDao;
    //登录
    @Override
    public User selectByAccount(String account) {
        User user = loginDao.selectByAccount(account);
        return user;
    }

    @Override
    public int register(User user) {
        int state = loginDao.register(user);
        return state;
    }
}
